package model

import (
	"engine/consts"
)

type JitiReq struct {
	JtStr string `json:"jtStr"`
}

type AdminUserCreateRequest struct {
	Email    string              `json:"email" binding:"required"`
	Nickname string              `json:"nickname" binding:"required"`
	Region   string              `json:"region"`
	Mobile   string              `json:"mobile"`
	RobotId  string              `json:"robotId" binding:"required"`
	RoleIds  []uint64            `json:"roleIds"`
	Status   consts.CommonStatus `json:"status"`
}

type QueryUserListRequest struct {
	Pid  uint64 `json:"pid" binding:"required"`
	PPid uint64 `json:"ppid" binding:"required"`
	PublicSearchData
}
type AdminUserUpdateRequest struct {
	Id       uint64 `json:"-"`
	Nickname string `json:"nickname" binding:"required"`
	Mobile   string `json:"mobile"`
}

type UserUpdateRequest struct {
	Nickname string `json:"nickname"`
	Region   string `json:"region"`
	Mobile   string `json:"mobile"`
}

type QueryAdminUserRequest struct {
	Status consts.CommonStatus `json:"status" form:"status" extensions:"x-nullable"`
	PublicSearchData
}
